ArcFM Responder Mobile Developer Guide
GetService<TService>() Method






Type of the service to retrieve
Gets the requested Service
Syntax
'Declaration
 
Public Overloads Shared Function GetService(Of TService)() As TService
'Usage
 
Dim value As TService
 
value = RxApp.GetService(Of TService)()
public static TService GetService<TService>()
public function GetService(): TService; static; 
public static function GetService() : TService;
public: static TService* GetService<TService>(); 
public:
static TService^ GetServicegeneric<typename TService>
(); 

Type Parameters

TService
Type of the service to retrieve

Return Value

An instance of the service if it could be found
Exceptions
ExceptionDescription
WrongThreadException A WrongThreadException will be thrown if attempting to retrieve a COM service type from an MTA thread.
System.ExceptionWill be thrown if no serice of this type has been found
Remarks
Generic version of GetService(Type)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RxApp Class
RxApp Members
Overload List

Send Feedback